<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header('新增Npc')"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-fantasyCitymap-addNpc">
			<div class="form-group">
				<input id="mapId" name="mapId" th:value="${mapId}"  type="hidden">
				<label class="col-sm-1 control-label">Npc</label>
				<div class="col-sm-3">
					<select id="npcId" name="npcId" class="form-control">
						<option value="">全部</option>
						<option th:each="fantasyNpc:${fantasyNpcList}" th:alt-title="${fantasyNpc.npcDesc}" th:value="${fantasyNpc.npcId}" th:text="${fantasyNpc.npcName}" value="1">
							aaa
						</option>
					</select>
				</div>
			</div>

		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "fantasy/fantasyCitymap"
		$("#form-fantasyCitymap-addNpc").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/addNpc", $('#form-fantasyCitymap-addNpc').serialize());
	        }
	    }
	</script>
</body>
</html>
